package com.FBinggun.SX;

import java.util.List;

import org.bukkit.entity.Player;

import com.FBinggun.config.config;

import github.saukiya.sxattribute.SXAttribute;
import github.saukiya.sxattribute.data.attribute.SXAttributeData;

public class SX {

	public static void setsx(Player p) {
		List<String> lore =config.ch.get(p.getName()).item.getItemMeta().getLore();
	    SXAttributeData data = SXAttribute.getApi().loadListData(lore);
		SXAttribute.getApi().setEntityAPIData(CH.class, p.getUniqueId(), data);
		SXAttribute.getApi().attributeUpdate(p);;
		
		
	}
}
